﻿@{
    Layout = null;
    var user = ViewBag.user as HynuIOTA.Entity.User;
}
@{
    if (user != null)
    {
        <ul class="user-bar">
            <li>欢迎您，尊敬的 @user.UserName!</li>
            <li><a href="@UrlConst.USER_USERMANAGER">个人中心</a></li>
            <li><a href="@UrlConst.USER_LOGINOUT">退出登录</a></li>
        </ul>
    }
    else
    {
        <ul class="user-bar">
            <li><a href="@UrlConst.USER_LOGIN">登录网站</a></li>
            <li><a href="@UrlConst.USER_REGISTER">注册用户</a></li>
        </ul>
    }
}